package com.roncoo.menu.controller;


import com.baomidou.mybatisplus.extension.api.ApiController;
import com.roncoo.menu.entity.TMenu;
import com.roncoo.menu.service.TMenuService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * (TMenu)表控制层
 *
 * @author makejava
 * @since 2021-03-22 14:41:52
 */
@RestController
@RequestMapping("tMenu")
public class TMenuController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private TMenuService tMenuService;

    @GetMapping("findall")
    private List<TMenu> findAll(){
        return tMenuService.list();
    }
}
